from typing import Annotated
from fastapi import Depends, HTTPException, Path

from . import crud


async def get_images_path_by_item_id(idx: int) -> list[str]:
    data = await crud.get_search_online_result()
    for item in data:
        if item["id"] == idx:
            return crud.get_path_list(item["prices_data"])
